package db8;

public class Literature extends Student{
    double yanjiang;
    double zuopin;
    double mtest;
    double ftest;
    public Literature(){

    }



    public Literature(int no,String name,String sex,int age,double yanjiang,double zuopin,double ftest,double mtest){
        super(no, name, sex, age);
        this.ftest=ftest;
        this.mtest=mtest;
        this.yanjiang=yanjiang;
        this.zuopin=zuopin;
    }
    @Override
    public double getGrade(){
        double grade=ftest*0.15+mtest*0.15+yanjiang*0.35+zuopin*0.35;
        return grade;
    }
}
